package com.dsg.entity.oil;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 * 拉咭记录
 * </p>
 *
 * @author 嘿嘿嘿
 * @since 2020-06-30
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("dsg_oil_pull")
@ApiModel(value = "DsgOilPull对象", description = "拉咭记录")
public class DsgOilPull implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId("OID")
    private String oid;

    @ApiModelProperty(value = "油咭编号")
    @TableField("CARD_NO")
    private String cardNo;

    @ApiModelProperty(value = "数据状态 0:未出咭 1:已出咭")
    @TableField("STATUS")
    private Integer status;

    @ApiModelProperty(value = "油咭有效期")
    @TableField("CARD_VALIDITY")
    private LocalDateTime cardValidity;

    @ApiModelProperty(value = "咭类型 1:RENEW 2:问题咭")
    @TableField("CARD_TYPE")
    private Integer cardType;

    /**
     * 企業編號
     */
    @TableField(value = "ENT_CODE")
    @ApiModelProperty(value = "企業編號", name = "entCode")
    private String entCode;

    /**
     * 创建人
     */
    @TableField(value = "CREATER")
    @ApiModelProperty(value = "创建人", name = "creater")
    private String creater;

    /**
     * 创建时间
     */
    @TableField(value = "CREATE_TIME")
    @ApiModelProperty(value = "创建时间", name = "createTime")
    private Date createTime;

    /**
     * 更新人
     */
    @TableField(value = "UPDATER")
    @ApiModelProperty(value = "更新人", name = "updater")
    private String updater;

    /**
     * 更新时间
     */
    @TableField(value = "UPDATE_TIME")
    @ApiModelProperty(value = "更新时间", name = "updateTime")
    private Date updateTime;
}
